package com.igorkundovic.guitarstab.pages;

import java.util.Date;

import org.apache.tapestry5.annotations.ApplicationState;

import com.igorkundovic.guitarstab.User;

/**
 * Start page of application guitartabs.
 */
public class Index
{
	public Date getCurrentTime() 
	{ 
		return new Date(); 
	}
	@ApplicationState
	private User user;
	private boolean userExists;
	
	public Object onActivate(){
		if (userExists) {
			return null;
		}
		return Welcome.class;
	}
	public boolean isUserExists() {
		return userExists;
	}
}
